package cn.daniellee.plugin.lm.menu;

import cn.daniellee.plugin.lm.LotteryMaster;
import cn.daniellee.plugin.lm.component.ItemGenerator;
import org.bukkit.inventory.ItemStack;

class Common {

	public static ItemStack getCorner() {
		return ItemGenerator.getItem(" ", null, LotteryMaster.getInstance().getConfig().getString("menu.common.corner.material", "MAGENTA_STAINED_GLASS_PANE"),  LotteryMaster.getInstance().getConfig().getInt("menu.common.corner.durability", 0));
	}

	public static ItemStack getBorder() {
		return ItemGenerator.getItem(" ", null, LotteryMaster.getInstance().getConfig().getString("menu.common.border.material", "BLUE_STAINED_GLASS_PANE"),  LotteryMaster.getInstance().getConfig().getInt("menu.common.border.durability", 0));
	}

	public static String getTrueStr() {
		return LotteryMaster.getInstance().getConfig().getString("menu.common.boolean.true", "&aTrue");
	}

	public static String getFalseStr() {
		return LotteryMaster.getInstance().getConfig().getString("menu.common.boolean.false", "&cFalse");
	}

	public static String getOpenStr() {
		return LotteryMaster.getInstance().getConfig().getString("menu.common.toggle.open", "&aOpen");
	}

	public static String getCloseStr() {
		return LotteryMaster.getInstance().getConfig().getString("menu.common.toggle.close", "&cClose");
	}

}
